package com.yykj.tencent.im.server.bean.callback;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * 状态变更回调
 *
 */
@Data
public class StateChangeCallback {
    @JsonProperty("CallbackCommand")
    private String callbackCommand;

    @JsonProperty("Info")
    private Info info;

    @JsonProperty("KickedDevice")
    private List<KickedDeviceItem> kickedDevice;

    @JsonProperty("EventTime")
    private Long eventTime;

    @Data
    public static class Info {
        @JsonProperty("Action")
        private String action;

        @JsonProperty("To_Account")
        private String toAccount;

        @JsonProperty("Reason")
        private String reason;

    }
    @Data
    public static class KickedDeviceItem {
        @JsonProperty("Platform")
        private String platform;

    }
}
